/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.edu.fatec.ads.facade;

import br.edu.fatec.ads.bo.BusinessObjectPredio;
import br.edu.fatec.ads.classes.Predio;
import br.edu.fatec.ads.util.ComboBoxItem;
import java.util.List;

/**
 *
 * @author Ubirajara
 */
public class FacadePredio {

    private static FacadePredio singleton = null;
    private BusinessObjectPredio regraNegocio = null;

    private FacadePredio(){
        regraNegocio = new BusinessObjectPredio();
    }

    public static FacadePredio getInstance(){
        if(singleton == null){
            singleton = new FacadePredio();
        }

        return singleton;
    }

    public Predio recuperarPredio(Integer codigoPredio){
        return regraNegocio.recuperarPredioPorId(codigoPredio);
    }

    public List<ComboBoxItem> recuperarComboBox(){
        return regraNegocio.recuperarListaPredios();
    }

}